#header{!{	ob_start();//解决cookie的使用限制}! 
   <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Df后台管理系统</title>
    <meta name="keywords" content="管理后台">
    <meta name="description" content="管理后台"> 
    <link href="/css_js/AdminFrame/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/css_js/AdminFrame/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="/css_js/AdminFrame/css/style.css?v=4.1.0" rel="stylesheet">
    <script>if (window.top !== window.self) { window.top.location = window.location; }</script>

}#


#body{
<body class="gray-bg">
    <div class="middle-box text-center loginscreen">
        <div>
            <div>
                <h1 class="logo-name">login</h1>
            </div>
            <h3>Df后台管理系统</h3>
          <form method="post">      
                <div class="text-left m-t">
                    <div class="form-group">
                      <input autocomplete="off" class="form-control" data-val="true" data-val-required="账号不能为空" name="data[nm]" placeholder="用户名" size="32" type="text" value="">
                      	 <span class="field-validation-error" veri-for="" ></span>
                    </div>
                    <div class="form-group">
                      <input autocomplete="off" class="form-control" data-val="true" data-val-required="密码不能为空"  name="data[pw]" placeholder="密码" size="32" type="password">
                        <span class="field-validation-error" veri-for="pw" ></span>
                    </div>
                    <button type="submit"  name="submit"  class="btn btn-primary full-width">登 录</button>
                    <p class="text-muted text-right m-r none">
                        <a href="login.html#"><small>忘记密码了？</small></a>
                    </p>
                </div>
          </form>
        </div>
    </div>



</body>



!{
//接收post
if(isset($_POST['submit'])){ 	
	
$user_sm = $_POST['data'];

$user = show("df",$user_sm['nm'],'nm');

if($user!=null)
if($user["pw"]==$user_sm["pw"]&$user["nm"]==$user_sm["nm"])
{
update('df',array('lastlogintime'=>getTime(TIMESTAMP)),$user[0]);
setSession($m->data["ses"],array($user[0],strToHex($user["nm"]),strToHex($user["pw"])),"admin/home/index");
}

runJs("<script>$('[veri-for=\"pw\"]').html('同志，请确定你的账号和密码')</script>");

} 
}!
 
 
}#



